package vn.co.thn.web.demo_app_engine.jpa;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Transient;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement
@Entity
public class SubMenu {
	@Id
	private String Key;// Menu_Key Id
	private String Menu_Key;
	private int Id;// Stt
	private String Name;
	private double Price;
	private String Image_Url;

	public String getMenu_Key() {
		return Menu_Key;
	}

	public void setMenu_Key(String menu_Key) {
		Menu_Key = menu_Key;
	}

	public int getId() {
		return Id;
	}

	public void setId(int id) {
		Id = id;
	}

	public String getName() {
		return Name;
	}

	public void setName(String name) {
		Name = name;
	}

	public double getPrice() {
		return Price;
	}

	public void setPrice(double price) {
		Price = price;
	}

	public String getImage_Url() {
		return Image_Url;
	}

	public void setImage_Url(String image_Url) {
		Image_Url = image_Url;
	}
	@Transient
	public void CreateKey() {
		this.Key=this.Menu_Key+this.Id;
	}
}
